home *** CD-ROM | disk | FTP | other *** search
/ Hyper Animation Series: Viper (Limited Edition) / Hyper Animation Series: VIPER (Limited Edition).iso / pc / SYSTEM / class / StgObjectAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-08-04  |  751 b   |  19 lines

  1. abstract class StgObjectAction {
  2.    protected StgFrame resource;
  3.  
  4.    public StgObjectAction(StgFrame var1) {
  5.       this.resource = var1;
  6.    }
  7.  
  8.    protected boolean checkHitBg(StgObjectIndex var1, int var2) {
  9.       HitBg var4 = this.resource.getHitBg();
  10.       if (var4.checkHit(var1)) {
  11.          Position var3 = var4.moveStgObjectIndex(var1, var2);
  12.          var1.movePosition(var3.getX(), var3.getY(), var3.getZ());
  13.          return true;
  14.       } else {
  15.          return false;
  16.       }
  17.    }
  18. }
  19.